﻿@{
    ViewData["Title"] = await SystemConfig.GetByFieldNameAsync("SiteName");
}
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>@ViewData["Title"]</title>
    <link rel="stylesheet" href="~/lib/layui/css/layui.css">
    <link rel="stylesheet" href="~/admin/css/main.css">

</head>
<body>
    <div class="layui-layout layui-layout-admin">
        <!-- 头部导航 -->
        <div class="layui-header">
            <a href="javascript:;" onclick="loadMenu('/Admin/Menu/Index')"><div class="layui-logo layui-hide-xs cxuu-logo"></div></a>
            <ul class="layui-nav layui-layout-left">
                <li title="左侧菜单显隐" id="leftMenuCtrl" class="layui-nav-item  cxuu_leftmenuctrl"><i class="layui-icon" aria-hidden="true"></i></li>
                @if (await Authorizer.AuthView(PermissionKeys.Menu_Article))
                {
                    <li class="layui-nav-item" title="文号管理(Content)">
                        <a href="javascript:;" onclick="loadMenu('/Admin/Menu/Article')">
                            <i class="layui-icon layui-icon-list"></i>
                            <span class="menu-header-title">登记</span>
                        </a>
                    </li>
                }
                @if (await Authorizer.AuthView(PermissionKeys.ArticleExamine_Index))
                {
                    <li class="layui-nav-item" title="发文流转审核(Examine)">
                        <a href="javascript:;" onclick="loadMenu('/Admin/Menu/Examine')">
                            <i class="layui-icon layui-icon-survey"> </i>
                            <span class="menu-header-title">
                                流转
                            </span>
                            <span class="layui-badge" id="count-examine">0</span>
                        </a>
                    </li>
                }
                @if (await Authorizer.AuthView(PermissionKeys.ArticleExamine_Index))
                {
                    <li class="layui-nav-item" title="消息管理(Notice)">
                        <a href="javascript:;" onclick="loadMenu('/Admin/Menu/Notice')">
                            <i class="layui-icon layui-icon-notice">
                                <span class="menu-header-title">
                                    消息
                                </span>
                            </i>
                            <span class="layui-badge" id="count-notice">0</span>
                        </a>
                    </li>
                }
                @if (await Authorizer.AuthView(PermissionKeys.Statistics_Index))
                {
                    <li class="layui-nav-item" title="工作统计(Statistics)">
                        <a href="javascript:;" onclick="loadMenu('/Admin/Menu/Statistics')">
                            <i class="layui-icon layui-icon-chart-screen">
                                <span class="menu-header-title">
                                    统计
                                </span>
                            </i>
                        </a>
                    </li>
                }
                @if (await Authorizer.AuthView(PermissionKeys.Menu_System))
                {
                    <li class="layui-nav-item" title="系统管理(System)">
                        <a href="javascript:;" onclick="loadMenu('/Admin/Menu/System')">
                            <i class="layui-icon layui-icon-set-fill"> </i>
                            <span class="menu-header-title">系统</span>
                        </a>
                    </li>
                }
                @if (await Authorizer.AuthView(PermissionKeys.Menu_Content))
                {
                    <li class="layui-nav-item" title="网站管理(System)">
                        <a href="javascript:;" onclick="loadMenu('/Admin/Menu/Content')">
                            <i class="layui-icon layui-icon-website"> </i>
                            <span class="menu-header-title">网站</span>
                        </a>
                    </li>
                }
            </ul>
        </div>
        <!-- 左侧导航 -->
        <div class="layui-side layui-bg-black cxuu-menu-left ">
            <div class="layui-side-scroll" id="leftMenu">
            </div>
        </div>
        <!-- 内容主体区域 -->
        <div class="layui-body">
            <div id="main" style="padding: 5px;"></div>
        </div>
        <!-- 底部固定区域 -->
        <div class="layui-footer">
            © @ViewData["Title"] power by @CxuuLxx.Ver
        </div>
    </div>
    <script src="~/lib/jquery.min.js?v=1.12.4"></script>
    <script src="~/lib/layui/layui.js?v=2.7.6"></script>
    <script src="~/lib/cxuu-main.js?v=1.0.5"></script>
    <script>
        layui.define(function () {
            var element = layui.element, $ = layui.jquery, util = layui.util;
        });
    </script>
</body>
</html>

